import request from '@/utils/request'
export function listOssByPage(query){
  return request({
    url: '/oss/page',
    method: 'get',
    params: query
  })
}
// 删除产品
export function deleteOss(data) {
  return request({
    url: '/oss/delete',
    method: 'post',
    data: data
  })
}

// 获取产品列表
export function getOss(data) {
  console.log('要获取的数据', data)
  return request({
    url: '/oss/list',
    method: 'get',
    params: data
  })
}

// 新增产品
export function addOss(data) {
  return request({
    url: '/clothes/insert',
    method: 'post',
    data: data
  })
}

// 修改产品
export function updateOss(data) {
  console.log('要修改的数据', data)
  return request({
    url: '/oss/updateOssInfo',
    method: 'post',
    data: data
  })
}

// 获取库存列表
export function getClothesNormList(data) {
  return request({
    url: '/clothesNorm/listClothesNorm',
    method: 'post',
    data
  })
}
// 新增库存
export function addClothesNorm(data) {
  return request({
    url: '/clothesNorm/insertClothesNorm',
    method: 'post',
    data
  })
}
// 删除库存
export function delClothesNorm(data) {
  return request({
    url: '/clothesNorm/deleteClothesNorm',
    method: 'post',
    data: data
  })
}
// 修改产品
export function updateClothesNorm(data) {
  return request({
    url: '/clothesNorm/updateClothesNorm',
    method: 'post',
    data: data
  })
}
